//
//  AppDelegate.swift
//  weibotest
//
//  Created by 冷冷清清 on 16/7/1.
//  Copyright © 2016年 tgl.cn. All rights reserved.
//

import UIKit
//import QorumLogs
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
    
    var window: UIWindow?
    //第一：
    /*打印LOG的弊端
     1.非常消耗性能
     2.如果app上传到appstore之后用户是看不到的
     所以开发阶段显示LOG
     部署阶段：隐藏LOG
     */
    
    
    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        //创建window
        window = UIWindow(frame: UIScreen.mainScreen().bounds)
        window?.backgroundColor=UIColor.whiteColor()
        //根视图
        window?.rootViewController=MainViewController()
        //显示window
        window?.makeKeyAndVisible()
        
        
        
        
        return true
        
    }
}


/*加上<T>是泛型函数,给meagage传输什么T就是什么*/
func NJLog<T>(meagage:T,filename:String=#file,methodName:String=#function,lineNumber:Int=#line)
{

    #if DEBUG
        print("\(methodName as NSString),\(lineNumber),\(meagage)")
    #endif

    
    
}





